package com.wwu.system.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serializable;

/**
 * Redis缓存实体
 * @author 一蓑烟雨
 * @version 1.0.0
 * @date 2023-07-21 08:36
 */
@Data
@Accessors(chain = true)
@ApiModel(value="Redis:Redis缓存实体", description="Redis缓存实体")
public class Redis implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "缓存键")
    private String key;

    @ApiModelProperty(value = "缓存类型(0:内置;1:其他)")
    private String type;

    @ApiModelProperty(value = "缓存值")
    private Object value;

    @ApiModelProperty(value = "过期时间")
    private long expire;
}
